package com.atguigu.springcloud.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @USER: dayu
 * @DATE: 2020/4/2
 * @DESCRIPTION:
 */
@RestController
@Slf4j
public class PaymentController {
    @Value("${server.port}")
    private String port;

    @GetMapping("/payment/get/{id}")
    public String paymentPort(@PathVariable("id") Integer id){
        return "nacos registry, id :"+id+",port :"+port;
    }
}
